import request from '@/utils/request'

export function deleteByCoachId(id){
  return request({
    url: '/member/memberCoach/deleteByCoachId',
    method: 'delete',
    params: {
      id: id
    }
  })
}

// 查询会员用户教练关系列表
  export function memberCoachById(id){
    return request({
      url: '/member/memberCoach/memberCoachById',
      method: 'get',
      params: {
        id: id
      }
    })
}
// 续课
export function addCourseTime(data){
  return request({
    url: '/member/memberCoach/addCourseTime',
    method: 'put',
    data: data
  })
}
//退课程时长
export function refundCourseTime(data){
  return request({
    url: '/member/memberCoach/refundCourseTime',
    method: 'put',
    data: data
  })
}
